<!-- UserModel.php-->
<?php 
	//require '../common/ConnDB.php';
	//require '../common/config.php';
	require 'Model.php';
	class commentModel extends Model{
		function __Construct(){
			parent::__Construct();
		}
		function getcommentList(){
			$sql = 'select * from comments';
			$data = $this->conn->query($sql);
			//$this->conn = new ConnDB();
			return $data;
		}

		
		

		
		   
		function Delcomment($id){
			$sql = "Delete from comments where cid=".$id;
			$data = $this->conn->query($sql);
			return $data;
		}
	}
 ?>